package queue

import (
	"context"
	"pusher/internal/svc"

	"github.com/zeromicro/go-zero/core/logx"
)

type LogConsumer struct {
	ctx    context.Context
	svcCtx *svc.ServiceContext
}

func NewLogConsumer(ctx context.Context, svcCtx *svc.ServiceContext) *LogConsumer {
	return &LogConsumer{
		ctx:    ctx,
		svcCtx: svcCtx,
	}
}

func (*LogConsumer) Consume(ctx context.Context, key, val string) error {
	logx.Infof("===========>consume log: key=%s, val=%s", key, val)
	return nil
}
